<?php

try {
	if(file_exists("./router/router.php")){
		require_once './router/router.php';
	}
	else {
		throw new Exception("Nie znaleziono pliku!");
	}
}
catch(Exception $e){
	return $e->getMessage();
}
class ApplicationRouterAllControllerMethodTest extends PHPUnit_Framework_TestCase {
	
	protected $router;
	
	protected function setUp(){
		$this->router = new Application_Router();
	}
	
	public function file_path_controller(){
		$controller_name = "Test_Controller_Runner";
		$expected = "./functionalities/test/controllers/runner.php";
		$this->assertEquals($expected, $this->router->create_controller_path($controller_name));
	}
	
	public function class_name_controller(){
		$controller_name = "test";
		$expected = "Test_Controller_Test";
		$this->assertEquals($expected, $this->router->create_controller_class($controller_name));
	}
	
}